home *** CD-ROM | disk | FTP | other *** search
/ Sunday Savers: Singing Fun! / Sunday Savers: Singing Fun!.iso / mac / Xtras / Buddy API 3.7 / Buddy API Docs.swf / texts / 1592.txt < prev    next >
Encoding:
Text File  |  2004-08-31  |  3.5 KB  |  117 lines

  1. 158
  2. --- RECORDSEPARATOR ---
  3.  
  4. --- RECORDSEPARATOR ---
  5. MakeShortcutEx 
  6. --- RECORDSEPARATOR ---
  7. Platform:
  8. --- RECORDSEPARATOR ---
  9.  
  10. --- RECORDSEPARATOR ---
  11. Windows
  12. --- RECORDSEPARATOR ---
  13.  
  14. --- RECORDSEPARATOR ---
  15. Description:
  16. --- RECORDSEPARATOR ---
  17.  
  18. --- RECORDSEPARATOR ---
  19. baMakeShortcutEx creates a Windows 95/NT shortcut.
  20. --- RECORDSEPARATOR ---
  21.  
  22. --- RECORDSEPARATOR ---
  23. Usage:
  24. --- RECORDSEPARATOR ---
  25.  
  26. --- RECORDSEPARATOR ---
  27. Result = baMakeShortcutEx( FileName, Path, Title, Args, WorkDir, Icon, 
  28. --- RECORDSEPARATOR ---
  29. IconNumber, Hotkey, State )
  30. --- RECORDSEPARATOR ---
  31.  
  32. --- RECORDSEPARATOR ---
  33. Arguments:
  34. --- RECORDSEPARATOR ---
  35.  
  36. --- RECORDSEPARATOR ---
  37. String, string, string, string, string, string, integer, integer, string. 
  38. --- RECORDSEPARATOR ---
  39. Filename is the name of the file the shortcut will point to. 
  40. --- RECORDSEPARATOR ---
  41. Path is the folder to create the shortcut in. 
  42. --- RECORDSEPARATOR ---
  43. Title is the name of the shortcut. 
  44. --- RECORDSEPARATOR ---
  45. Args is any command line arguments to use. 
  46. --- RECORDSEPARATOR ---
  47. WorkDir is the working directory to set. 
  48. --- RECORDSEPARATOR ---
  49. Icon is the name of the icon file. 
  50. --- RECORDSEPARATOR ---
  51. IconNumber is the number of the icon in Icon to use. 
  52. --- RECORDSEPARATOR ---
  53. Hokey is the virtual key code of the hotkey to assign to the shortcut. 
  54. --- RECORDSEPARATOR ---
  55. State is the state to start the program in. Can be "normal", "min", "max"
  56. --- RECORDSEPARATOR ---
  57.  
  58. --- RECORDSEPARATOR ---
  59. Returns:
  60. --- RECORDSEPARATOR ---
  61.  
  62. --- RECORDSEPARATOR ---
  63. Integer. 
  64. --- RECORDSEPARATOR ---
  65. Returns 1 if successful, else 0.
  66. --- RECORDSEPARATOR ---
  67.  
  68. --- RECORDSEPARATOR ---
  69. Examples:
  70. --- RECORDSEPARATOR ---
  71.  
  72. --- RECORDSEPARATOR ---
  73. Director: 
  74. --- RECORDSEPARATOR ---
  75. set ok = baMakeShortcutEx( "c:\windows\notepad.exe", "c:\temp", "My Notepad", "", 
  76. --- RECORDSEPARATOR ---
  77. "c:\windows", "c:\windows\moricons.dll", 12, 65, "normal" ) 
  78. --- RECORDSEPARATOR ---
  79. Authorware: 
  80. --- RECORDSEPARATOR ---
  81. ok := baMakeShortcutEx( "c:\\window\\notepad.exe", baSysFolder( "desktop" ), "My 
  82. --- RECORDSEPARATOR ---
  83. Document", docpath ^ "theFile.txt", "", "", 0, 65, "max" )
  84. --- RECORDSEPARATOR ---
  85.  
  86. --- RECORDSEPARATOR ---
  87. Notes:
  88. --- RECORDSEPARATOR ---
  89.  
  90. --- RECORDSEPARATOR ---
  91. This function is only available in the 32 bit version running under Windows 95 or 
  92. --- RECORDSEPARATOR ---
  93. NT 4. If used in 16 bit or under earlier versions of NT, it will do nothing and return 
  94. --- RECORDSEPARATOR ---
  95. 0. 
  96. --- RECORDSEPARATOR ---
  97. This function is an extended version of baMakeShortcut. Only the first three 
  98. --- RECORDSEPARATOR ---
  99. arguments are required - if any of the others are an empty string or 0, they will be 
  100. --- RECORDSEPARATOR ---
  101. ignored. 
  102. --- RECORDSEPARATOR ---
  103. The Icon parameter can be either an .ico, .exe or .dll file. If the file is a .ico, then 
  104. --- RECORDSEPARATOR ---
  105. the IconNumber parameter is ignored. If it is a .exe or .dll file, then the IconNumber 
  106. --- RECORDSEPARATOR ---
  107. is the number of the icon in that file to use. If the Icon is an empty string (""), then 
  108. --- RECORDSEPARATOR ---
  109. the first icon in the Command .exe file will be used. 
  110. --- RECORDSEPARATOR ---
  111. The Hotkey is a number that represents the virtual key code to use as the hotkey. 
  112. --- RECORDSEPARATOR ---
  113. The actual hotkey will be Ctrl + Alt + the key. eg a value of 65 will produce a hotkey 
  114. --- RECORDSEPARATOR ---
  115. of Ctrl+Alt+A. If the value is negative then Shift will also be used. eg -66 will 
  116. --- RECORDSEPARATOR ---
  117. produce Ctrl+Alt+Shift+B. A list of Virtual Key Codes is supplied.